//
//  SetTableViewCell.m
//  jizhiyunduan
//
//  Created by 鞠超 on 16/4/27.
//  Copyright © 2016年 JC. All rights reserved.
//

#import "SetTableViewCell.h"

@implementation SetTableViewCell

- (instancetype )initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self)
    {
        [self p_setupView];
    }
    
    return self;
}

- (void )p_setupView
{
    self.image = [[UIImageView alloc] init];
//    self.image.backgroundColor = [UIColor orangeColor];
    [self.contentView addSubview:self.image];
    
    
    self.name = [[UILabel alloc] init];
    self.name.text = @"山东智顺网络有限公司";
    self.name.font = [UIFont systemFontOfSize:16];
    [self.contentView addSubview:self.name];
    
    
    self.image_return = [[UIImageView alloc] init];
    self.image_return.image = [UIImage imageNamed:@"youfanhui.png"];
    [self.contentView addSubview:self.image_return];
}

- (void )layoutSubviews
{
    [super layoutSubviews];
    
    self.image.frame = CGRectMake(15, 10, 30, 30);

    self.name.frame = CGRectMake(CGRectGetMaxX(self.image.frame) + 15, 10, SCREEN_WIDTH - CGRectGetMaxX(self.image.frame) - 15 - 40, 30);

    self.image_return.frame = CGRectMake(SCREEN_WIDTH - 30, 15, 20, 20);
}

@end
